package data;

import java.util.LinkedHashMap;

/**
 * 
 * @author William Tran
 * 
 * Class to represent a full precedence diagramming method
 * 
 */
public class PDMStructure {

	// Hashmap to hold nodes. Note key will be the task id
	private LinkedHashMap<String, PDMNode> pdmNodes;

	/**
	 * Default Constructor
	 */
	public PDMStructure() {
		pdmNodes = new LinkedHashMap<String, PDMNode>();
	}

	/*
	 * Getter and setters below here
	 */

	/**
	 * Sets this linkedhashmap of pdmNodes to another one
	 * 
	 * @param pdmNodes
	 *            - linkedhashmap to be set to
	 */
	public void setPdmNodes(LinkedHashMap<String, PDMNode> pdmNodes) {
		this.pdmNodes = pdmNodes;
	}

	/**
	 * Returns this linkedhashmap of pdmNodes
	 * 
	 * @return pdmNodes - linkedhashmap of pdm nodes
	 */
	public LinkedHashMap<String, PDMNode> getPdmNodes() {
		return pdmNodes;
	}

}
